const wxpay = require('yi-wx-pay');

module.exports = {

handler(req, res, next) {
    let param={
        body:'微信支付测试',
        orderNum:'1234567890',
        money:"0.01",
        spbill_create_ip:req.connection.remoteAddress,
        openid:"ofZo_5XudLHnCkIn-jxVNy7XCoY0"
    };
    wxpay.wxpay(param,(e,r)=>{
        console.log('@@@@@@@@@@@@@@@@@@@@',e,r);
        res.reply({code:0,message:'发起支付成功',data:r});
    });
}

}
